import request from '@/utils/request'

// 查询抄历史列表
export function listReading_history(query) {
  return request({
    url: '/system/reading_history/list',
    method: 'get',
    params: query
  })
}

// 查询抄历史详细
export function getReading_history(historyId) {
  return request({
    url: '/system/reading_history/' + historyId,
    method: 'get'
  })
}
// 查询备注详细
export function getRemarks() {
  return request({
    url: '/system/reading_history/remark',
    method: 'get'
  })
}
// 新增抄历史
export function addReading_history(data) {
  return request({
    url: '/system/reading_history',
    method: 'post',
    data: data
  })
}

// 修改抄历史
export function updateReading_history(data) {
  return request({
    url: '/system/reading_history',
    method: 'put',
    data: data
  })
}

// 删除抄历史
export function delReading_history(historyId) {
  return request({
    url: '/system/reading_history/' + historyId,
    method: 'delete'
  })
}
